#include "SWF.h"
#include <istream>

class CSwfWriter
{
public:
	CSwfWriter();
	~CSwfWriter();

	istream strm;
	
	UI32 Size();

protected:
	void Write(const UI8  i);
	void Write(const UI16 i);
	void Write(const UI32 i);
	void Write(const ST_RECT a_stRect);
	void Write(CSwfWriter a_SwfWriter);
};

/*
void Swap(int index1, int index2)
{
	B = i[index1];
	i[index1] = i[index2];
	i[index2] = B;
}

void SwapBytes(long int &value)
{
	UI8 i[7] = reinterpret_cast<unsigned char>(value);
	UI8 B;

	Swap(0, 7);
	Swap(1, 6);
	Swap(2, 5);
	Swap(3, 4);
}
*/